<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="pragma" content="no-cache" />
<title>网站导航</title>
<%@ include file="../../common/Admin-list.jsp"%>


<script type="text/javascript">
	function querytAuthInfo()
	{

		var list=[];
		$("input[name='checkboxIds']:checked").each(function(){
			list.push(this.value);
		});
		if(list.length<=0){
			 art.dialog.alert('请选择记录数！');
			 return;
		 }
		var id=list.toString();
		 $.ajax({
			type : 'post',
			dataType : 'json',
			async : false,
			url : '../subjectAuth/queryByAuthId.json',
			data : {
				id : id,
				delSub : true
			},
			success : function(data) {
				
				art.dialog.opener.returnValue=data; 
				art.dialog.close();
			}
		}); 
	}
</script>

</head>

	<body>
	<form action="../subjectAuth/listAuth.htm" method="post" name="listForm"
		id="listForm">
		<div id="filter" class="module">
			<ul>
				<li><label>机构名称：</label>
					<input type="text" id="name" name="name" value="${data.name }"  style="width: 200px;" /></li>
					<input type="hidden" id="type" name="type" value="${data.type }"/>
				<li><input type="submit" class="btn btn-blue-h20-w2" value="查询" /></li>
				
				<li><input type="button" class="btn btn-blue-h20-w2" value="确定" onclick="querytAuthInfo();" /></li>
			</ul>
			<div class="clear"></div>
		</div>

		<div id="list1" class="list module">
			<div class="hd">
				<h2 class="t">数据列表</h2>
				<span class="handle4filter" title="显示/隐藏查询条件"></span>
			</div>
			<div class="bd">
				<div style="overflow-x: auto; overflow-y: auto; height: 500px; width:700px;">
				<table  id="tableInfo" class="l-table" style="width: auto;height: auto;" cellspacing="0" cellpadding="0">
					<tr>
						<th width="3%"><input type="checkbox" onclick="selectAll(this.checked,'checkboxIds');"/></th>
						<th width="20%">编号</th>
						<th width="80%">组织机架名称</th>
						
						
						
						
					</tr>
					<c:if test="${data.list.size() > 0 }">
						<c:forEach items="${data.list}" var="tf" varStatus="st">
							<c:if test="${st.count%2 != '0'}">
								<tr  ondblclick="ondbClick(${tf.id })">
							</c:if>
							<c:if test="${st.count%2 == '0'}">
								<tr class="odd" ondblclick="ondbClick(${tf.id })">
							</c:if>
								<td align="center"><input type="checkbox" id="checkboxIds"  <c:if test='${tf.isCheck ==1 }'> checked='checked' </c:if>  name="checkboxIds" value="${tf.id}"/></td>
								<td align="center"> ${tf.id } </td>
								<td align="center"> ${tf.name } </td>
								
							</tr>
						</c:forEach>
					</c:if>
					<c:if test="${data.list.size() <= 0 }">
						<tr>
							<td align="center" colspan="5">没有符合条件的数据！</td>
						</tr>
					</c:if>
				</table>
			</div>
			</div>
		</div>
	</form>
</body>
</html>